We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have classes below
class AClass { #[Cycle\Column(type: 'integer')] private int $userId; }
class BClass { #[Cycle\Relation\BelongsTo(target: User::class)] private Exchanger $user; }
class User { #[Cycle\Column(type: 'primary')] private ?int $id = null; // properties here }
When I make requests like this. In the $aList the members have a userId property, and in the $bList there is a user_id property.
$aList
userId
$bList
user_id
$aList = $this->getOrm()->getRepository(AClass::class) ->select() ->fetchData(); // $alist = [ ['userId' => 1] ] $bList = $this->getOrm()->getRepository(BClass::class) ->select() ->fetchData(); // $bList = [ ['user_id' => 1, 'user' => ['id' => 1, 'foo' => 'bar']] ]
Is it possible to do something with the #[Cycle\Column(type: 'integer')] to fetch columns in different cases in queries?
#[Cycle\Column(type: 'integer')]
PHP 8.1 cycle/orm 2.2.1
The text was updated successfully, but these errors were encountered:
roxblnfk
No branches or pull requests
No duplicates 🥲.
What happened?
We have classes below
When I make requests like this. In the
$aList
the members have auserId
property, and in the$bList
there is auser_id
property.Is it possible to do something with the
#[Cycle\Column(type: 'integer')]
to fetch columns in different cases in queries?Version
The text was updated successfully, but these errors were encountered: