Open rmallah opened 1 year ago
Ah, I think the problem is more that Yancy is trying to use the status
field as the ID for URLs. Setting x-id-field
to explicitly use the id
column for that table could be one way to fix this. A more robust way might be for Yancy's schema reader to not try to choose those reserved stash values as ID fields. If neither of those end up working, we might have to start adding prefixes to the stash names for ID fields (which I hope it does not come to that, as I think that may break some existing sites).
thanks for clearly , explaining the root-cause and hinting the fix ( to use x-id-field feature) . I will try to see the code and create PR based on the suggestion which sounds reasonable.
Hi ,
if we have a table as:
and we want to use it with Yancy CMS the mojo application will fail to start and will abort with following message
this seems to be too prohibitive and limiting.
An working example to replicate the issue is attached in the file.
yancy_case.zip
lib/YancyCase.pm